#!/usr/bin/env -S awk -f

BEGIN {
	FS = "\\.\\.\\. "
}

$0 ~ FS && $2 == "" {
	printf("eid.%s.fail: 001\n", substr($1, 39))
}

$2 ~ /FAILED/ {
	printf("eid.%s.fail: 001\n", substr($1, 39))
}

$2 ~ /succeeded/ {
	printf("tcase.%s.pass: 001\n", substr($1, 39))
}

$2 ~ /ignored_by_lkp/ {
       printf("tcase.%s.skip: 001\n", $1)
}

